
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>

<link href="css/index2.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
</head>

<body>
<div id="top">
    <h1 id="biaoti">员工信息表</h1>
</div>
  
<div id="mian_out">
	  <div id="mian">
			
			<ul class="list">
    <?php 
                    require_once './db_conn2.php';
                    $sql = "SELECT*FROM index";
                    $result = $conn->query($sql);
    ?>
         <?php if ($result->num_rows > 0) :?>
            <?php
            $rows = $result->fetch_all(MYSQLI_ASSOC);
            foreach($rows as $row):?>                                             
                            <div class="name"><?php echo $row['name'] ;?></div>
                            <div class="sex"><?php echo $row['sex'] ;?></div>
                            <div class="whereword"><?php echo $row['whereword'] ;?></div>
                            <div class="birthday"><?php echo $row['birthday'] ;?></div>                  
                            <div class="wordday"><?php echo $row['wordday'] ;?></div>
                            
        <?php endforeach;?>
    <?php else:?>
                                <p>0个结果</p>
    <?php endif;?>
                              
</body>
</html>
